import React, { Component } from 'react'
import CategoryDetail from '../../components/category-detail'
export default class Hardware extends Component {
    constructor (props) {
        super(props)
        this.state = {
            list:[
                {
                    id:1,
                    title:'坚果手机',
                    netlist:[
                        {
                            dId:11,
                            name:'坚果R1',
                            images:'https://resource.smartisan.com/resource/06c2253354096f5e9ebf0616f1af2086.png'
                         },
                         {
                             dId:12,
                             name:'坚果 Pro 2S',
                             images:'https://resource.smartisan.com/resource/b07b9765e272f866da6acda4ee107d88.png'
                         },
                         {
                             dId:13,
                             name:'坚果3',
                             images:'https://resource.smartisan.com/resource/13e91511f6ba3227ca5378fd2e93c54b.png'
                         }
                    ]
                },
                {
                    id:2,
                    title:'数码配件',
                    netlist:[
                        {
                            dId:21,
                            name:'数据线',
                            images:'https://resource.smartisan.com/resource/82aab62886740f165a3631ce6cffe895.jpg'
                        },
                        {
                            dId:22,
                            name:'充电器',
                            images:'https://resource.smartisan.com/resource/dc53bd870ee64d2053ecc51750ece43a.jpg'
                        },
                        {
                            dId:23,
                            name:'线控耳机',
                            images:'https://resource.smartisan.com/resource/ce632bd67465027861707ec221b37c2d.jpg'
                        },
                        {
                            dId:24,
                            name:'移动电源',
                            images:'https://resource.smartisan.com/resource/33954b3f6a2f1614c5482ef130af9cc8.jpg'
                        },
                        {
                            dId:25,
                            name:'拍照配件',
                            images:'https://resource.smartisan.com/resource/f55641e23f35f6dd82226b6c4a043f00.jpg'
                        }
                    ]
                }
            ]
        }
    }
    render() {
        return (
            <>
                <CategoryDetail list={this.state.list}/>
            </>
        )
    }
}


